// DlgSupportNumber.cpp : implementation file
//

#include "stdafx.h"
#include "pdarx.h"
#include "DlgSupportNumber.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDlgSupportNumber dialog


CDlgSupportNumber::CDlgSupportNumber(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgSupportNumber::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgSupportNumber)
	m_a_length = 0.0;
	m_angle = 0.0;
	m_p_length = 0.0;
	m_auto_search = FALSE;
	//}}AFX_DATA_INIT
	::AfxSetResourceHandle(g_ARXInstance);
}


void CDlgSupportNumber::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgSupportNumber)
	DDX_Text(pDX, IDC_A_LENGTH_EDIT, m_a_length);
	DDX_Text(pDX, IDC_ANGLE_EDIT, m_angle);
	DDX_Text(pDX, IDC_P_LENGTH_EDIT, m_p_length);
	DDX_Check(pDX, IDC_AUTO_SEARCH_CHECK, m_auto_search);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgSupportNumber, CDialog)
	//{{AFX_MSG_MAP(CDlgSupportNumber)
	ON_WM_CREATE()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgSupportNumber message handlers

void CDlgSupportNumber::OnOK() 
{
	CDialog::OnOK();
}

void CDlgSupportNumber::OnCancel() 
{
	// TODO: Add extra cleanup here
	
	CDialog::OnCancel();
}

int CDlgSupportNumber::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{
	if (CDialog::OnCreate(lpCreateStruct) == -1)
		return -1;
	
	::AfxSetResourceHandle(g_CADInstance);
	
	return 0;
}
